﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <meta charset="utf-8" />
    <link href="style/style.css" rel="stylesheet" />
</head>
<body>
    
    <script src="../../Script/jquery-1.8.2.min.js"></script>


    <div class="modal-dialog-content">
        <div>
            <div style="">
                <span class="ee-section-title ee-section-title-floating">TeX 公式</span>
                <div style="clear: both;"></div>
                <div style="position: relative;">
                    <div class="ee-menu-palette" role="grid" style="-moz-user-select: none;" tabindex="0">
                        <table cellspacing="0" cellpadding="0" class="ee-menu-palette-table">
                            <tbody class="ee-menu-palette-body">
                                <tr class="ee-menu-palette-row" role="row">
                                    <td class="ee-menu-palette-cell" id="ee-menu-palette-cell-0" role="gridcell" aria-selected="false"><div class="ee-menu-palette-item" style="width: 46px; height: 18px; background-position: 0px 0px;"></div></td>
                                    <td class="ee-menu-palette-cell" id="ee-menu-palette-cell-1" role="gridcell" aria-selected="false"><div class="ee-menu-palette-item" style="width: 46px; height: 18px; background-position: -46px 0px;"></div></td>
                                    <td class="ee-menu-palette-cell" id="ee-menu-palette-cell-2" role="gridcell" aria-selected="false"><div class="ee-menu-palette-item" style="width: 46px; height: 18px; background-position: -92px 0px;"></div></td>
                                    <td class="ee-menu-palette-cell ee-menu-palette-cell-selected" id="ee-menu-palette-cell-3" role="gridcell" aria-selected="true"><div class="ee-menu-palette-item" style="width: 46px; height: 18px; background-position: -138px 0px;"></div></td>
                                    <td class="ee-menu-palette-cell" id="ee-menu-palette-cell-4" role="gridcell" aria-selected="false"><div class="ee-menu-palette-item" style="width: 46px; height: 18px; background-position: -184px 0px;"></div></td>
                                </tr>
                            </tbody>
                        </table>
                    </div><div style="clear: both;"></div><textarea class="ee-tex" dir="ltr"></textarea><div class="ee-section-title">预览</div><div class="ee-preview-container"><img src=""></div><div class="ee-palette" role="grid" style="-moz-user-select: none; left: 0px; top: -160px; display: none;" aria-hidden="true"><table cellspacing="0" cellpadding="0" class="ee-palette-table"><tbody class="ee-palette-body"><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-5" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: 0px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-6" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -18px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-7" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -36px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-8" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -54px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-9" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -72px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-10" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -90px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-11" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -108px -30px;"></div></td></tr><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-12" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -126px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-13" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -144px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-14" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -162px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-15" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -180px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-16" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -198px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-17" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -216px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-18" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -234px -30px;"></div></td></tr><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-19" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -252px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-20" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -270px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-21" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -288px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-22" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -306px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-23" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -324px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-24" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -342px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-25" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -360px -30px;"></div></td></tr><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-26" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -378px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-27" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -396px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-28" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -414px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-29" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -432px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-30" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -450px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-31" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -468px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-32" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -486px -30px;"></div></td></tr><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-33" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -504px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-34" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -522px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-35" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -540px -30px;"></div></td><td class="ee-palette-cell d" id="ee-palette-cell-36" role="gridcell" aria-selected="true"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -558px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-37" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -576px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-38" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -594px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-39" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -612px -30px;"></div></td></tr><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-40" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -630px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-41" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -648px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-42" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -666px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-43" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -684px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-44" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -702px -30px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-45" role="gridcell" aria-selected="false"></td><td class="ee-palette-cell" id="ee-palette-cell-46" role="gridcell" aria-selected="false"></td></tr></tbody></table></div><div class="ee-palette" role="grid" style="-moz-user-select: none; left: 0px; top: -133px; display: none;" aria-hidden="true"><table cellspacing="0" cellpadding="0" class="ee-palette-table"><tbody class="ee-palette-body"><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-47" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: 0px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-48" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -18px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-49" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -36px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-50" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -54px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-51" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -72px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-52" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -90px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-53" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -108px -50px;"></div></td></tr><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-54" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -126px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-55" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -144px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-56" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -162px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-57" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -180px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-58" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -198px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-59" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -216px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-60" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -234px -50px;"></div></td></tr><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-61" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -252px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-62" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -270px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-63" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -288px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-64" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -306px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-65" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -324px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-66" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -342px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-67" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -360px -50px;"></div></td></tr><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-68" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -378px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-69" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -396px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-70" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -414px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-71" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -432px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-72" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -450px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-73" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -468px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-74" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -486px -50px;"></div></td></tr><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-75" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -504px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-76" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -522px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-77" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -540px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-78" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -558px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-79" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -576px -50px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-80" role="gridcell" aria-selected="false"></td><td class="ee-palette-cell" id="ee-palette-cell-81" role="gridcell" aria-selected="false"></td></tr></tbody></table></div><div class="ee-palette" role="grid" style="-moz-user-select: none; left: 0px; top: -80px; display: none;" aria-hidden="true"><table cellspacing="0" cellpadding="0" class="ee-palette-table"><tbody class="ee-palette-body"><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-82" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: 0px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-83" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -18px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-84" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -36px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-85" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -54px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-86" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -72px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-87" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -90px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-88" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -108px -70px;"></div></td></tr><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-89" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -126px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-90" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -144px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-91" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -162px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-92" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -180px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-93" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -198px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-94" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -216px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-95" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -234px -70px;"></div></td></tr><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-96" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -252px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-97" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -270px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-98" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -288px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-99" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -306px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-100" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -324px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-101" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -342px -70px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-102" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -360px -70px;"></div></td></tr></tbody></table></div><div class="ee-palette" role="grid" style="-moz-user-select: none; left: 0px; top: -129px; display: none;" aria-hidden="true"><table cellspacing="0" cellpadding="0" class="ee-palette-table"><tbody class="ee-palette-body"><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-103" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: 0px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-104" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -30px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-105" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -60px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-106" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -90px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-107" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -120px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-108" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -150px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-109" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -180px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-110" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -210px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-111" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -240px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-112" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -270px -90px;"></div></td></tr><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-113" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -300px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-114" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -330px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-115" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -360px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-116" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -390px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-117" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -420px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-118" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -450px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-119" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -480px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-120" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -510px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-121" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -540px -90px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-122" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 30px; height: 56px; background-position: -570px -90px;"></div></td></tr></tbody></table></div><div class="ee-palette" role="grid" style="-moz-user-select: none; left: 0px; top: -27px; display: none;" aria-hidden="true"><table cellspacing="0" cellpadding="0" class="ee-palette-table"><tbody class="ee-palette-body"><tr class="ee-palette-row" role="row"><td class="ee-palette-cell" id="ee-palette-cell-123" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: 0px -150px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-124" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -18px -150px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-125" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -36px -150px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-126" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -54px -150px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-127" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -72px -150px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-128" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -90px -150px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-129" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -108px -150px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-130" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -126px -150px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-131" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -144px -150px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-132" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -162px -150px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-133" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -180px -150px;"></div></td><td class="ee-palette-cell" id="ee-palette-cell-134" role="gridcell" aria-selected="false"><div class="ee-palette-item" style="width: 18px; height: 18px; background-position: -198px -150px;"></div></td></tr></tbody></table></div>
                </div>
               
            </div>
        </div>
      
    </div>

    <script>
        var imgUrlBegins = ['https://www.zhihu.com/equation?tex='
            , 'http://latex.codecogs.com/gif.latex?'
            , 'http://latex.numberempire.com/render?'
        ];
        var imgUrlBeginIndex = 0;
        var imgUrlBegin = imgUrlBegins[imgUrlBeginIndex];
        $('.ee-preview-container img').bind('error', function () {
            var src = $(this).attr('src');
            var data = '';
            if (src.indexOf('?tex=') > 0) {
                data = src.split('?tex=')[1];
            }else if (src.indexOf('gif.latex?') > 0) {
                data = src.split('gif.latex?')[1];
            }else if (src.indexOf('render?') > 0) {
                data = src.split('render?')[1];
            }
            if (data == '') {
                return;
            }
            imgUrlBeginIndex++;
            console.log(imgUrlBeginIndex)
            if (imgUrlBeginIndex >= imgUrlBegins.length) {
                $('.ee-preview-container img').unbind('error');
                return;
            }
            imgUrlBegin = imgUrlBegins[imgUrlBeginIndex];
            $('.ee-preview-container img').attr('src', imgUrlBegin + data);
        });
        var $btnMenu = $('.ee-menu-palette-cell');
        var $menus = $('.ee-palette');
        $('.ee-menu-palette-body').delegate('.ee-menu-palette-cell', 'click', function () {
            var index = $btnMenu.index(this);
            $menus.hide().eq(index).show();
        });
        var html2Img = function () {
            var t = $('.ee-tex').val().trim();
            t = encodeURIComponent(t);
            $('.ee-preview-container img').attr('src', imgUrlBegin + t);
        };

        var list0 = "\\alpha \\beta \\gamma \\delta \\epsilon \\varepsilon \\zeta \\eta \\theta \\vartheta \\iota \\kappa \\lambda \\mu \\nu \\xi \\pi \\varpi \\rho \\varrho \\sigma \\varsigma \\tau \\upsilon \\phi \\varphi \\chi \\psi \\omega \\Gamma \\Delta \\Theta \\Lambda \\Xi \\Pi \\Sigma \\Upsilon \\Phi \\Psi \\Omega".split(" ");
        var list1 = "\\times \\div \\cdot \\pm \\mp \\ast \\star \\circ \\bullet \\oplus \\ominus \\oslash \\otimes \\odot \\dagger \\ddagger \\vee \\wedge \\cap \\cup \\aleph \\Re \\Im \\top \\bot \\infty \\partial \\forall \\exists \\neg \\angle \\triangle \\diamond".split(" ");
        var list2 = "\\leq \\geq \\prec \\succ \\preceq \\succeq \\ll \\gg \\equiv \\sim \\simeq \\asymp \\approx \\ne \\subset \\supset \\subseteq \\supseteq \\in \\ni \\notin".split(" ");
        var list3 = "x_{a};x^{b};x_{a}^{b};\\bar{x};\\tilde{x};\\frac{a}{b};\\sqrt{x};\\sqrt[n]{x};\\bigcap_{a}^{b};\\bigcup_{a}^{b};\\prod_{a}^{b};\\coprod_{a}^{b};\\left( x \\right);\\left[ x \\right];\\left\\{ x \\right\\};\\left| x \\right|;\\int_{a}^{b};\\oint_{a}^{b};\\sum_{a}^{b}{x};\\lim_{a \\rightarrow b}{x}".split(";");
        var list4 = "\\leftarrow \\rightarrow \\leftrightarrow \\Leftarrow \\Rightarrow \\Leftrightarrow \\uparrow \\downarrow \\updownarrow \\Uparrow \\Downarrow \\Updownarrow".split(" ");
        var lists = list0.concat(list1).concat(list2).concat(list3).concat(list4);
        var $tables = $('.ee-palette');

        
        var $items = $('.ee-palette-item');
        $('body').delegate('.ee-palette-item', 'click', function () {
            var index = $items.index(this);
            var v = $('.ee-tex').val();
            $('.ee-tex').val(v + ' ' + lists[index]);
            $('.ee-palette').hide();
            html2Img();
        });
        $('.ee-tex').bind('input', function () {
            html2Img();

        });
    </script>
</body>
</html>
